rtrace -w -h -I+ -ab 1 ./z_output___gcs_vis.oct < ./sensors.pt > ./temp.txt

:: the irradiance value in the results file need to be multiplied by 179000 if the -r option is specified for GenCumulativeSky
:: the irradiance value in the results file need to be multiplied by 1000   if the -p option is specified for GenCumulativeSky
rcalc -e "$1=($1*0.265+$2*0.670+$3*0.065)*179000" < ./temp.txt > ./results.txt

pause